<div style="display: inline-block; background-color: blue; padding: 3px">
    <span style="display: block; width: 20px; height: 20px; background-color: red"></span>
</div>
